﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CarClass
{
    public enum Season { Winter, Spring, Summer, Autum};

    class Wheel
    {
        public Wheel()
        {
            radius = 0;
            _season = Season.Summer;
        }

        public Wheel(Int32 radius)
        {
            Radius = radius;
            _season = Season.Summer;
        }

        private Int32 radius;
        public Int32 Radius
        {
            get { return radius; }
            set 
            {
                if (value > 0) radius = value;
                else throw new Exception("недопустимое значение радиуса!!!");
            }
        }

        public Season _season { get; protected set; }

        public void Rotate()
        {
            Console.WriteLine("крутится колесо!");
        }

        public override string ToString()
        {
            return String.Format("размер колеса " + radius);
        }
    }
}
